from PyQt6.QtWidgets import QWidget, QVBoxLayout, QFrame, QLabel
from PyQt6.QtCore import Qt

class ContentCard(QFrame):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setObjectName("contentCard")
        self.setStyleSheet("""
            QFrame#contentCard {
                background-color: rgba(255, 255, 255, 0.05);
                border-radius: 8px;
            }
        """)

class BasePage(QWidget):
    def __init__(self):
        super().__init__()
        self.setProperty("dark_mode", False)
        
        # 创建主布局
        self.main_layout = QVBoxLayout()
        self.main_layout.setContentsMargins(20, 20, 20, 20)
        self.main_layout.setSpacing(20)
        self.setLayout(self.main_layout)
        
        # 创建页面标题
        self.title = None
        
    def set_title(self, title):
        title_label = QLabel(title)
        title_label.setStyleSheet("""
            font-size: 24px;
            font-weight: bold;
        """)
        self.main_layout.addWidget(title_label) 